package thread.demo.copyOnWriteArrayList;

import java.util.concurrent.CopyOnWriteArrayList;

public class CopyOnWriteArrayListTest001 {
  public static void main(String[] args) {
    CopyOnWriteArrayList<Integer> arr = new CopyOnWriteArrayList<>();
    
    arr.add(1);
    arr.add(2);
    arr.add(3);
    
    arr.remove(0);
    
    arr.forEach(System.out::println);
  }
}
